package com.trust.entity.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author ccc
 * @since 2023/4/11 16:11
 */
@Data
@ApiModel("下拉框合集出参")
public class DropDownBoxResult implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty("标签")
    private String tag;

    @ApiModelProperty("数据")
    private Object list;

    @ApiModelProperty("是否可新增 true可 false不可")
    private Boolean canSave  = true;

    public DropDownBoxResult(String tag, Object list, Boolean canSave) {
        this.tag = tag;
        this.list = list;
        this.canSave = canSave;
    }

    public DropDownBoxResult(String tag, Object list) {
        this.tag = tag;
        this.list = list;
    }

    public DropDownBoxResult() {
    }
}
